<template>
  <div>
    <LazyLoadTab v-model="activeName" :tabMenus="menus" :destroyOnClose="true"></LazyLoadTab>
  </div>
</template>

<script>
export default {
  name: 'approval',
  data() {
    return {
      activeName: '无效审批',
      menus: [
        {
          title: '无效审批',
          path: 'potenCus/customer/approval/approval',
          params: {
            dataType: 'clue'
          }
        },
        {
          title: '战败审批',
          path: 'potenCus/customer/approval/approval',
          params: {
            dataType: 'biz'
          }
        },
        // {
        //   title: '全部',
        //   path: 'potenCus/customer/approval/approval'
        // },
      ]
    };
  },
  created() {
    let roleType = localStorage.getItem("roleType")
    if (roleType === '10061013') {
      let menus = this.menus
      this.menus = menus.splice(1,1)
      this.activeName = '战败审批'
    }
    if(this.$route.query.active === 1){
      this.activeName = '战败审批'
    }
  },
};
</script>

<style lang="less" scoped>
</style>
